package com.classdesign.webapi.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

public class Redis {

        @Autowired
        private RedisTemplate<String,String> redisTemplate;

        public void main(String[] args) {


            redisTemplate.opsForValue().set("myKey", "myValue");
            System.out.println(redisTemplate.opsForValue().get("myKey"));
        }

}
